<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>个人资料-修改</title>
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css" />
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      body {
        background-color: #edebeb;
        padding: 20px;
      }
      .layui-form {
        width: 400px;
      }
    </style>
  </head>
  <body>
    <div class="layui-card">
      <div class="layui-card-header">修改密码</div>
      <div class="layui-card-body">
        <!-- 放置表单 -->
        <form id="myForm" class="layui-form" lay-filter="formData">
          <!-- 隐藏域 虽然看不到它 他能接受数据 获取的时候 数据也能取出来 -->
          <!-- 提交时要取id -->
          <div class="layui-form-item">
            <label class="layui-form-label">原密码</label>
            <div class="layui-input-block">
              <input
                type="password"
                name="oldPwd"
                required
                lay-verify="required"
                autocomplete="off"
                class="layui-input"
                placeholder="请输入原密码"
              />
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">新密码</label>
            <div class="layui-input-block">
              <input
                type="password"
                name="newPwd"
                required
                lay-verify="required|passwordLen"
                placeholder="请输入新密码"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <div class="layui-form-item">
            <!-- 杜撰- 瞎编 -->
            <label class="layui-form-label">确认密码</label>
            <div class="layui-input-block">
              <input
                type="password"
                name="reNewPwd"
                required
                lay-verify="required|confirmPass"
                placeholder="请再次输入新密码"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="formDemo">
                修改密码
              </button>
              <button
                id="btnReset"
                type="reset"
                class="layui-btn layui-btn-primary"
              >
                重置
              </button>
            </div>
          </div>
        </form>
      </div>
    </div>
    <script src="/assets/lib/layui/layui.all.js"></script>
    <script src="/assets/lib/jquery.js"></script>
    <script src="/assets/js/baseAPI.js"></script>
    <script src="/assets/js/user/user_pass.js"></script>
  </body>
</html>
